package com.zry.yard.ui.activity

import com.zry.yard.R
import com.zry.yard.databinding.ActivityTraceabilityBinding
import com.zry.yard.presenter.OutTreasuryRecordPresenter
import com.zry.yard.ui.base.BaseActivity
import kotlinx.android.synthetic.main.common_title.*

class OutTreasuryRecordActivity : BaseActivity() {
    private var outTreasuryRecordBinding: ActivityTraceabilityBinding? = null
    private var outTreasuryRecordPresenter: OutTreasuryRecordPresenter? = null

    var customerID = ""
    var stateID = ""
    var outCode = ""
    override fun getLayoutId(): Int {
        return R.layout.activity_traceability
    }

    override fun initData() {

        titleCenterText.text = "出库单列表"
        commonLeftLinearLayout.setOnClickListener { finish() }
        outTreasuryRecordBinding = viewDataBinding as ActivityTraceabilityBinding
        outTreasuryRecordPresenter = OutTreasuryRecordPresenter(this)
        outTreasuryRecordBinding?.handlerClick = outTreasuryRecordPresenter

        initView()
    }

    private fun initView() {
        outTreasuryRecordPresenter?.initRecycler()
        outTreasuryRecordPresenter?.getOutTreasury(1, 10, "", "", "")
    }

}
